module.exports = function(window, document) {
	var apivm = require('../../common/avm.min')(window, document);
	var avm = apivm;
	var api = apivm.api;
	var Component = apivm.Component;
	var $ = apivm.$;
	(function() {
	var List = /*@__PURE__*/ (function(Component) {
		function List(props) {
			Component.call(this, props);
			this.data = {
				stars: ["古力娜扎", "赵丽颖", "宋茜"],
				category: ["语文", "数学", "英语"],
				books: [
					["语文1年级", "语文2年级", "语文3年级"],
					["数学1年级", "数学2年级", "数学3年级"],
					["英语1年级", "英语2年级", "英语3年级"]
				]
			};
		}

		if (Component) List.__proto__ = Component;
		List.prototype = Object.create(Component && Component.prototype);
		List.prototype.constructor = List;
		List.prototype.apiready = function() {};
		List.prototype.render = function() {
			var this$1 = this;
			return apivm.h(
				"view",
				{class: "page"},
				apivm.h("view", null, "明星列表"),

				Object.entries(this.data.stars).map(function(ref) {
					var i = ref[0];
					var star = ref[1];
					return apivm.h("view", null, parseInt(i) + 1, "=>", star);
				}),

				apivm.h("view", null, "数据列表"),
				Object.entries(this.data.books).map(function(ref) {
					var index$1 = ref[0];
					var booksItem = ref[1];
					return apivm.h(
						"view",
						null,
						apivm.h("view", null, "类型：", this$1.data.category[index$1]),
						Object.entries(booksItem).map(function(ref) {
							var bookIndex = ref[0];
							var book = ref[1];
							return apivm.h("view", null, bookIndex, ".", book);
						})
					);
				})
			);
		};

		return List;
	})(Component);
	apivm.define("list", List);
	apivm.render(apivm.h("list", null), "body");
})();

	window['createApp'] = function() {
		apivm.$_start();
	}
	return avm;
}